<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<link rel='stylesheet' type="text/css" href='media/css/styleDesc_event.css' />
<title>site événementiel</title>
</head>
<body>
<?php

if(isset($_GET['id']) && $_GET['id'] != NULL){
foreach ($donnees as $donnee)
{ 
?>

<h1><?php echo $donnee['nom'];?> </h1>

<div class=photo>
<img src='<?php echo $donnee['chemin']; ?>' alt='moi'>
</div>

<div class=info>
<span class=description>Description de l'Event </span>:<?php echo $donnee['description'];?></br>
<span class=description>Thème :</span><?php echo $donnee['theme'];?></br>
<span class=description>Début :</span><?php echo $donnee['dateDeb'];?></br><?php echo $donnee['heureDebut'];?>h<?php echo $donnee['minuteDebut'];?>min</br>
<span class=description>Fin : </span><?php echo $donnee['heureFin'];?>h<?php echo $donnee['minuteFin'];?>min</br>
<?php if($donnee['tarif'] != 0){?>
<span class=description>Tarif :</span><?php echo $donnee['tarif'];?></br>
<?php }else {?>
<span class=description>Tarif : GRATUIT ! </span>
<?php }?>
</div>

<div class=info>
<span class=description> Adresse :</span><?php echo $donnee['adresse'];?></br>
<?php if($donnee['nombrePlace'] != 0){?>
<span class=description>Places disponibles :</span><?php echo $donnee['nombrePlace'];?></br>
<?php }else {?>
<span class=description>Places disponibles : Aucune limitation !</br></span>
<?php }?>
<?php if($donnee['ageMin'] != 0){?>
<span class=description>Age minimum :</span><?php echo $donnee['ageMin'];?></br>
<?php }else {?>
<span class=description>Age minimum : TOUS PUBLIC !</span>
<?php }?>
</div>
<?php
}
}

?>

<div class=bouton>
<a href="vues/participer.php?id=<?php echo $id; ?>"><img src="media/images/participer.png" alt="Photo participer" title="Participer" onclick="this.src="'media/images/participe.png' /></a>
</div>
<div class=bouton>
<a href="index.php?page=forumEvent"> <img src="media/images/forum.png" alt="Forum" title="Forum" /> </a>
</div>
<div class=bouton>
<a href="http://www.facebook.com/sharer.php?u=nomdelevent"><img src="media/images/partager.png" alt="Photo FB" title="Partager sur FB" /></a> 
</div>
</body>        


</html>